<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<body>
<input type="button" value="getStrutsJson" id="getStrutsJson">
</body>
<script>
    $("#getStrutsJson").click(function () {
        $.ajax({
            type: "POST",
            url: "${pageContext.request.contextPath}/jsonAction!testJson1.action",
            success: function (data) {
                console.log(data);
                var jsonObj = eval("(" + data.json + ")");
                console.log(jsonObj.userName);
                console.log(jsonObj.passWord);
            }
        });
    });
</script>

</html>
